fix get_class_list error, when someone cancel reg and is the latest one canceled.