fix event buffer bugs