fixed empty tab bug