fixes with couchdb