Fixes replacement targets.