Fixed some issues with Stdout, Stderr, Stdin