Fixed standard input reopened