Fix iPhone/iPad detection.