fix the connection loss to the apple issue