Switch fix for iOS7