Attempt to fix stdout premature EOF