fixed iOS7 detection