Fix minor pattern issues.