Cleaning induced errors. Error fixing