fix autotie.t bug on win32