Fix for getting nGrams