fixed the dragging bug on controls