fix move_before