Fix issue with shading options getter by local variable