Added patch for maxListeners