fixed path finding issue