Error occured, reverting code