Fix learnerstatechanged case