fixed bug where last summary data row not saved