document class bug fixed