bugfix after bugfix in setregistry