fix dirty value
Merge pull request #1315 from HDelbert/fix-material

fix dirty value