Fixed a bug in SingletomModuleRegistry