Fix total pattern match verification