fixing socketfd