fix problem with undefined exams