revert error code changes