small bugfix in exception