fix bugs
event index