fixed template compiler