Fix template rendering.