fix loading d3.