fix calcMaterialsForm editing