fix some of the compilation issue
docpartviewer automatic change