Fix rectangular selection.