bugfixes for widget and chunk