fix infinite loop in phrase marker, where pattern would continue to
match