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

Fixed global templates variable