fixing memcache bug