fix bugs of docclass.py