fix WMEvent.fire on Node.js