Fixing bug on memcache