Fixed this.emit to self.emit