fixed typo in exception handling