Fix this.rows.length issue in select_all and invert_selection