Fix bug in private messaging