Fixed socket bug where the socket would not load the sockets properly