fixed rendering bug on iOS 7