Fix dragging issues with patterns