fixed bug in Vocabulary class