fix old style templates