Fix bug of the notification when new message arrived.