bugfix in (nightly) stats generation