fixed my mainregistry mistake