Fixed typo in exception handler