Fix stupid fd initializtion