fixed a bug in private messages