fixed classCode and moodCode bug