fix d3 chart