bug fixes for PM chat