fix not throwing exception