fixed 'bad fd'
fixed 'bad fd'