fix legend for custom color brewer