fix bugs related to iOS 8 - this is the version in the app store