bugfix: possible EventEmitter memory leak detected