fixed the double click to exit bug.
Originally, it occasionally go back to the previous tab.