fix some urls in templates