fixing stathat counter setting