fix bug in dragging: drag unsaved group to category 1, then drag part of
group from category 1 to category 2, then drag the rest from category 1
to category 2