Fix for rtf bug in ios7