Correction of a new bug introduced recently

causing A* running in an infinit loop
no comment...