fix bug in private messages