fix a bug in memcache