fix ios8 and wifi bug