             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: =>

        offset += n.value() + margin
      offset

    x_offset: => @get('column') * (D3.sankey.Node.width + D3.sankey.Node.horizontal_spacing)

    # center point of the node. We use it as link anchor point
    x_center: => @x_offset() + D3.sankey.Node.width / 2

    # The height of the node is the sum of the height of its link. Since links
    # are both inbound and outbound, let's use the max size. Ideally the values

      max_height = @node_list.max_column_value()

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

      # update the node label
