fix some bugs in multi-core version codes generation and runtime