fix for deleting messages