dirty path finding fix