Fixed Windows compatilbility