Corrected some statistics generation.