Fixed a problem with the last selected row and multiple deletes.