Fixed typo with exception