Fixed case when also T changes among replicas

(pointed out by Xiaodong Pang)