fixed template rendering