fixed d3 issues