[DF-2992] material flags logic fixed