modify an error of template file