Fixed regression in windows build