fix sending pm crash