fixing typo in raising exception