fix type registry.