fix register active tab