Fix bugs in both Private message and public message.