Fixed bug in tabwidget