Fix url replacement