Fix close of tabs