fixed template_rule bug when rendering layouts