Fixing bad replacements.