resolve rich txt issue