sent messages bug fix