Fixed removing all selected rows after deleting them in the table