Proper fix for RTF bug in ios7