fix stdout dump