Fix spawn error in Windows