fix bug with template rendering