Fixed max students and remaining_spots bug