Fixed getType in RegistryImpl