bug fix when adding private message