Fixed Windows Errors