Fix Exception on Windows