fixing message delete issue