Added warning for widgetVar undefined.