small fixes for stats