Fix select max fd