Fixed crazy failover bug on pipelined