fix several bugs in Mahjong Mode