Minor fixes to the statistics service.