Fix server replica behavior