stats_utils: small bug correction