fix message ID judging.