fixed variable corruption under win x64