fixes a rendering issue with iOS 8