Fix template compilation.