Fixing bug in missing widget_id variable