Fixed pathfinding bugs on the overworld.