fixed a bug in Vocabulary