fixed filedesc stdout