resolve issue where classroom_activity is nil