fix mistake getIndexes in TextResult