fix a bug in new message