fixed some bugs in smiley parser