fixed not compiling templates