few fixes for iOS 7