Fix bug in ios sniffing.