 			
 			addCursor = (cursor) =>
 				if cursor
-					name = cursor._cursorDescription.collectionName
+					collectionName = cursor._cursorDescription.collectionName
 				
 					record =
 						cursor: cursor
 						ids: {}
 					
-					newRecords[name] = record
-					oldRecord = oldRecords[name] ? {ids: {}}
+					newRecords[collectionName] = record
+					oldRecord = oldRecords[collectionName] ? {ids: {}}
 					
 					cursor.observeChanges
 						added: (id, fields) =>

			else
				addCursor result
			
			for name, record of oldRecords
				for id of record.ids
					@removed(name, id)
			
			oldRecords = newRecords
			

								delete oldRecord.ids[id]
							else
								record.ids[id] = true
								@added(collectionName, id, fields)
								
						removed: (id) =>
							delete record.ids[id]
							@removed(collectionName, id)
							
						changed: (id, fields) =>
							@changed(collectionName, id, fields)
			
			result = f.call(@)
			
