Fix template generator for R2

No match.