fixed error in text2featurearray