fix memcache connection bug