Fix collapsing of menu in the navbar widget