small fix after pathfinding refacto