Fixing the widget edition bug.