 							let childClipElement = childClip as! XMLElement
 							
 							if childClipElement.fcpxRef == resource.fcpxID {  // Check primary storyline clip
-								print("Matching compound clip found: \(item.attribute(forName: "name")?.stringValue)")
+								print("Matching compound clip found: \(item.fcpxName ?? "unnamed element")")
 								matchingItems.append(item)
 								
 							} else {  // Check clips attached to this primary storyline clip

								
								if multicamAngleChildElement.fcpxRef == resource.fcpxID {
									
									print("Matching multicam found: \(item.attribute(forName: "name")?.stringValue)")
									matchingItems.append(item)
									break
								}

									let attachedClipElement = attachedClip as! XMLElement
									
									if attachedClipElement.fcpxRef == resource.fcpxID {
										print("Matching compound clip found: \(item.fcpxName ?? "unnamed element")")
										matchingItems.append(item)
									}
									
