Fix for fd