fix bug

self.validEvent not ValidEvent