fix for colormultipassmaterial runtime error when switching in material
properties