Modified erdc - Something's wrong--perhaps a missing \item. \Blinddocument

I was creating a report using erdc template. I have modified erdc.cls because I don't have the fonts and don't want the hassle to install the non-free font it required.

What I did change inside the erdc.cls are: - comment out the font loading: \usepackage{mathgifg} - change every the font style : \fontseries{k} or \fontseries{h} with the more commonly supported b and m.

As substitute/override for the sans font, I load in the preamble section: \usepackage{berasans} and \usepackage{mathptmx} for the serif font.

If I compile this simple document:

\documentclass[oneside]{erdc}

\usepackage{mathptmx}
\usepackage{berasans}
\usepackage[T1]{fontenc}
\usepackage{blindtext}

\begin{document}
%   \maketitle
\Blinddocument
\end{document}


I got error report:

Something's wrong--perhaps a missing \item. \Blinddocument

I could not trace the source of the problem. Please help, my experience in LaTeX are limited.

You shouldn't change a class without changing also its name.

Beside this: the definition of \section in the class is faulty. It uses \addpenalty without ensuring that it is in vertical mode. If you add a \par is should work:

\documentclass[oneside]{erdc}

\usepackage{mathptmx}
\usepackage{berasans}
\usepackage[T1]{fontenc}
\usepackage{blindtext}
\makeatletter
\renewcommand\section{%