Correction in the counter method and in the pattern status