fix recompile templates