Fixed Windows compatibility