prevent document attributes update failure