fixed smudge bad pattern match regex