Fixed bug with num_rows not resetting after deletion.