FIXED: support for advanced shading was not always checked correctly