fixed bug in portalSendFd