fixes for iOS7