fix spec#history/rank_update sometimes failed