fix a bug when creating gradingTable with selected subject