Material Error on Startup that I cannot Fix

I get this error every time I start the UE5 editor. I have baked a scene with the M_ProcGrid material so the bUsedWithStaticLighting becomes available, ticked the box so it is on and saved the material. I still get this error every time on startup even though bUsedWithStaticLighting is true on M_ProcGrid.

“M_ProcGrid Material /Engine/OpenWorldTemplate/LandscapeMaterial/M_ProcGrid.M_ProcGrid was missing the usage flag bUsedWithStaticLighting. If the material asset is not re-saved, it may not render correctly when run outside the editor. Fix but I have opened M_ProvGrid and ticked Used with Static Lighting variable to true”

I found the Solution to this: In the Material you have to toggle bUsedWithStaticLighting to false then save then to true and save again. This must be an editor bug. It happend after building the HLODs and Lighting.