revert an error