mastery bug fix