fixing addstats command