Revert conditionally