Fix automatic attribution of badges for quizz