fix detection of iOS7