Apple devices detection fix.