Fixing a typo in the exception message. Fixes #335