fixed bug caused by prof inserting sectionname not properly