Fixed Pathfinding Bug