bugfixes for widget