Possible fix for tabwidget npe's