Fix stat tracking check