Fixing revert error