fixed the db/memcache problem