Fix for re-invoking A* calculation.