fixed undeclared name var on windows
0.1.8