Fix for A* locking itself out when looking for multiple paths.