path finding fix