[pattern] fix the sequence number of patterns
[stat] fix bugs and get the statistics data of the new pattern style