fixed errors in exceptions