Mood state calculation bug fix