Fixed fd issue