make 'tag' variable local, too
Merge pull request #1 from hmeine/master

make 'tag' variable local, too