Correct the material check in flow