fix a templates bug.
Merge pull request #38 from Yixi/master

fix a templates bug.