Fix text and richText color change, Fix #261