Deleting the last remaining row now doesnt crash the program