Nav Mesh bounds not accurate

When implementing AI into my game, I found that the nav mesh was acting strange,placing random jagged walls at locations where they weren’t supposed to be. Is there a fix for this?