d3 correction