 
       if property_name
         # Add tween select if we are editing a key.
-        tweenProp = @addTweenProperty(instance_prop, lineData, key_val, $container)
+        tweenProp = @addTweenProperty(instance_prop, lineData, key_val, $container, propertyData, domElement)
         @items.push(tweenProp)
 
       return

      $container.append(prop.$el)
      return prop

    addTweenProperty: (instance_prop, lineData, key_val, $container) =>
      tween = new PropertyTween(instance_prop, lineData, @editor, key_val, @timeline)
      $container.append(tween.$el)


        index = propertyData.keys.indexOf(key_val)
        if index > -1
          propertyData.keys.splice(index, 1)
          @editor.propertiesEditor.keyRemoved.dispatch(domElement)
          lineData._isDirty = true
      return tween

