fix race in between find last event and update last event record
fix race in between find last event and update last event record