Fix typo in exception handling.