Fix padding problem (modify d3 source)