Fixed path finding error