bug fix for delete message