Fix typo in thrown exception