fix possible EventEmitter memory leak detected problem