Fixed regression on Windows Platform

Fixed Windows platform regression