Fixed issue with updating student counts