fixed wee bug in exceptions