win32 fix

fixed a problem with win32
it might have actually corrupted memory given certain conditions