Fix url replacements