Fix to use script local variable
Merge pull request #22 from haya14busa/fix-global-var

Fix to use script local variable