Fixed bugs on shared memcached