Fixed bug when using stdout as the output from a program
run