Bug fix, sending errors down the wrong pipe