small fix for exceptions