Fix close of tab stability