fix in Replace