fix paths to templates