fixed repeat digest on editMaterials #1800