compile fix for statistics mode