Fix for CouchDB/Cloudant syncing