REVERT changes due to error