Fix piped mode