Fix d3 lines

Fixes #45 and #46