fix type register