Fixed typos 

Fixed typos resulting in invalid exception handling