       [job.data.legislationDetail.Committees.CommitteeListing]
 
     committeeAssemblyIds = committeesArray.map (committee) ->
-      console.log(committee)
       Number(committee.Id)
 
-    db.collection("committees").find(assemblyId: {"$in": committeeAssemblyIds}).toArray (err, results) -> ifSuccessful err, callback, ->
+    db.collection("committees").find({
+      assemblyId: {"$in": committeeAssemblyIds},
+      sessionId: sessionId
+    }).toArray (err, results) -> ifSuccessful err, callback, ->
+      if results.length == 0
+        callback("No committees found.")
+        return
+
       committeeObjectIds = results.map((_) -> _._id)
 
       db.collection("legislation").update {_id: legislationId}, {"$set": {"committees": committeeObjectIds}}, (err) ->

      return

    legislationId = new ObjectId(job.data.legislationId)

    committeesArray = if job.data.legislationDetail.Committees.CommitteeListing.map?
      job.data.legislationDetail.Committees.CommitteeListing

    latestVersion: parseLatestVersion(legislationDetail.LatestVersion)

  db.collection("legislation").update
    _id: legislation._id
  ,
    "$set": eliminateUndefineds(gaodpLegislationDetail)
  , (err, doc) ->
    ifSuccessful err, callback, ->
      jobs.create('persist legislation authors', legislationId: legislation._id, legislationDetail: legislationDetail).save()
      jobs.create('persist legislation committees', {legislationId: legislation._id, sessionId: legislation.sessionId, legislationDetail: legislationDetail}).save()
      callback()

persistLegislationIndex = (session, legislationIndex, db, callback) ->
