Update the socket attribute to the correct location