fix child process stdout bugs;