fix fd