fixes waiting failover