fixed removal of lines from d3 plot