fix range initialization on Windows