Make sure replace isn't defined twice