Fixed bug in learning process -- emoticons were taken care of too late