makeregistry fix