Fixed dragging and sorting at same time bug