Fix the widget type.