Fix stat hat counting