prevent safari ios bug