Fixed widget iterator going out of range with ui.Tree