Resolve bug of event detection in simulator.html of moon warriors