stats handler fixed