fix null statistics issue