minor fix of RichText
Merge pull request #7563 from andyque/minorFixOfRichText

minor fix of RichText