fix renaming tabs after deletion