fix duplication bug with template
Merge pull request #11 from bookcasey/master

fix duplication bug with template