correct path finding issue