Fix for dragging.