fix Exceptions raising