fix move_object method