applied ReplicationBehavior fix from 3.0 to 2.5