Fixed socket fd error.