Bugfix for refreshing tabs