rtf parser fixes