Fixup the initialisation of core.