fixed the bug in previous commit of memcache error