fix RichText visit issue