Fix typo in raised exception