resolve issue with undefined variable in Windows
Merge pull request #473 from Icode4food/pr1

resolve issue with undefined variable in Windows