Fixed a bug in the client code where server address was saved.