Fix revert error