fix tabs closing