corrected not_if for replica init