Fix tab ID generation