fixed an ios bug