fix id so that dragging works properly