Fix a bug that caused windows version to fail