fix default template rendering behavior