fix raising Exception