fix failover algorithm to find last seen seq with equal logs