fix for 'Use emitter.setMaxListeners() to increase limit' issue