Memcached bug fix

A small bug related to connecting with Memcached has
been fixed.