Fixing drag selection of shapes.