Fixed pathfinding error!