fix replacement