fixed spawn error in windows

bb4e75db978770a815b2b687271f5fbc03d9b3ca