Fixed a bug occurring when fetching classes for a section