Fixed Windows bug