fix tab-naming bug