fixed compilation problems in RichTextEntry