fix not compiling template