fixed _getWordSpans in text composer