fix bad revert