Revert to previous if error