Solve the move_parents problem.