fix bug of listbox crash