fix event outoforder bug