Fixed index oob error in TextView.