Some more attempting to fix runtime errors in ASMRegistry.