fixes segment generation for multi-period
clears all metrics after reset