Fix sync for windows