fixed dragging issue