fix dragging to collapsed nodes