Fix iOS 6 issue