Minor fix for listbox code