             offset += link.value()
       @right.y_offset() + offset
 
-    left_x:  => @left.x_center()  + D3.sankey.Node.width / 2
-    right_x: => @right.x_center() - D3.sankey.Node.width / 2
+    left_x:  => @left.x_center()  + @left.width / 2
+    right_x: => @right.x_center() - @right.width / 2
 
     # Use 4 points and let D3 interpolate a smooth curve
     path_points: =>

      max_height = @node_list.max_column_value()

      # update the scaling function
      @y = d3.scale.linear()
        .domain([0, max_height * 1.25])
        .range([0, @height * .90])

      # update the node label

        .attr("fill", (d, i) -> d.get('color') || colors(i))
        .style("stroke", (d, i) -> d3.rgb(d.get('color') || colors(i)).darker(2))
        .style('stroke-width', 1)
        .attr("width", (d) -> d.width)
        .attr("height", (d) => @y d.value())

      nodes.append("svg:text")
