Fix renderer items in legend (#8651)