Fixed the fd valid problem