Issue #4294: Fix bugs for MoonWarriors JSB