we have somewhat working stats output, but NaNs appear for some reason