Fixed a bug in program: rows deleted from table view were still in memory.