fix errors in couchbase initialization