resolve issue with undefined variable in Windows