Fix unfold up logic.