changes bad HOST_URL in templates