Fix issue on iOS 7