mastery_category_score bug fix