fixed adjustments of parents in pathfinding