fix assign groups when grouping is not dependent on specialization
fix subject grades when only part of the students are assigned to the groups