correction of errors on exceptions