pathfinding bugs fixed