Object nav mesh works in unity tester but not in build

The enemy ai nav mesh in my game works perfectly in the unity tester but when the game is built, the enemies start going through walls and defying the layout of the map. Does anybody know why the build version works differently from how the unity tester runs the game? Any help would be appreciated.

This is how the navmesh has been baked in the level