Had to remove the module registry from the Registry class because it was not saving the module ID properly