resolve issue wit undefined variable in Windows