fixed bug with word_types = null