Fix template define
Merge pull request #85 from elasticsearch/fix_template

Fix template define