Fix problems when disabling extension after having enabled autohide option.