Detect replication task correctly