remove flickering on iOS 5