Workaround for iOS 6 sincos crash.