Fixed a bug when activating extension after closing settings tab