fixed ios bug