Finally fixed the stdout.txt problems.