fix for new couchdb hash system