fix bug with an empty subsection and bug with not dynamic graph course