fix stat templates