make sure template is rendered on dispatch error