ui.event-loop: Fix using list.