Minor fix: if legend isn't specified, not show it