ZVISION: Fix nested template formatting