Fix pattern bugs involving meta-targets and braces