fixed statistics issue