Fix bug related to retrieve solutions of homeworks and exams