fixed the coremodules initialization