fix some string replacement in the url