Fix creating a widget from a list