fixed a bug that getModuleById will return a wrong module id for the main entry