template renders only once, fix #112