Smal bugfix for pathfinding