fix showing non-existing classes when school is changed