Fixes #81: reset query when saving widget