Fixed some minor bugs in NavMeshBuilder