fix error_list template and and error_class