Smiley were not properly set in certain particular cases - thanks Allan for reporting

Signed-off-by: emanuele <emanuele45@gmail.com>