Fix trace handling on Windows
Use through2 instead of through