fix for non-overlaping chains in stats aggregation