fix mastery validation