fix spawn error on windows