fix some bugs with private messages