Solve the compile error in templates.
Merge pull request #397 from natural-law/master

Solve the compile error in templates.