fixed incorrect ASM pattern bug.
Add two filtering threshold to filter out incorrect patterns.