Fix weird behaviour for 64-bit version on Windows