fix eventemitter inheritance