fix for dragging