fix path finding