         chain.map (obj, i, array) ->
             obj.connector_index = obj.line.indexOf obj.connector
             if i > 0
-                prev = array[i-1].connector
-                prev_idx = obj.line.indexOf prev
-                obj.prev_connector = prev
+                prev = array[i-1]
+                prev_con = prev.connector
+                my_prev_idx = obj.line.indexOf prev_con
+                prev_idx = prev.connector_index
+                obj.prev_connector = prev_con
+                obj.my_prev_connector_index = my_prev_idx
                 obj.prev_connector_index = prev_idx
             obj
 

        lineObject = new THREE.Object3D()
        lineObject.add.apply(lineObject, letterObjects)
        lineObject.position.y = -index * line_layout.height
        lineObject

    addChain: (text) =>

        document.body.appendChild( @renderer.domElement )

        @camera = new THREE.PerspectiveCamera( 70, window.innerWidth / window.innerHeight, 1, 1000 )
        @camera.position.z = -10
        @camera.position.x = -1
        @camera.position.y = 0
        @camera.lookAt new THREE.Vector3(-1,0,0)
