Fix issue with shader serialization