Fix widgettemplate require definition.