Fix issue where stat samples were accidentally static, so that any additional stat with sampling would produce wrong results