d3 representation fixes