fix bug with multiple draggable elements