Bugfix/2298 fix couchdb view