Switch the getLatestEvent flag, seems solve the problem of inconsistent. Some corner case can still mess up the order.