fix bug with memcache