fixed registry to load.