bug fix in d3.canvas.brush