fixed typo and made error message more comprehensible.