select correct row when deleting last row in the summary view