fix 'reopen closed tab' issue