fixed d3color constructor