fix iPhone and iPad detection.