Fix infinite loops in WidgetListBox