fix paths in templates