Fix adding tabs (broken after changes related to warning message)