fixed dragging glitch