Fix getFile in couchdb