fixed ios bugs