fixed memcache bug