fixed shell.previous.stdout