resolve issues on iOS 7