fixed subprocess buffer bug
fixed subprocess buffer bug