fix form error template from var