Fix bug with static vocabulary.