fixed typo in exception handler