Fixed a problem in the tab widget