Bug fixing on bag of words.