Hotfix for template update

Changing a template would throw an error instead of reload the page