fix the drag bug