small fix in thrown exception