fix bug in getTexts()