Small fixes to statistics