fix ios bug