Fixed bug during table stats consolidation