fix iOS 6 flicker with orientation change.