event parsing

fix event parsing bug