fix a bug for memcached