ios bug avoiding