fixing subgoal move bug