Small fix for RenderLayer.