fix data path in templates