fixed a bug related to multiple connections using the cache server.