Fixed global templates variable
Merge pull request #4 from andigr/patch-4

Fixed global templates variable