Make sure last row or last column can be selected with a rectangular selection.