multiple replacements fix