Fixed stupid bug with sockets