Fix width/height issue for D3