fixing iOS detect