Collapse fix for not attached widgets.