Issue #4277: modifying some codes makes moonwarriors simulator to run

Modifying some codes makes moonwarriors simulator to run