Fixes for statistics.