fixes fd