fix the update match bug for document tree modify