stats fix for windows