RTF bug fix