fix bug in close fd