adding missing error.template