Fixed ios bug