fix url in templates