Fix a revert error when cleared