small fix pathfinding