Fix bug in the tab-bar widget.