Fix iOS 7.1.2 issue