fix errors in exception