Fix for older couchdb version