Fixed templates file error