fixed issues when delete message