 						if audioElement.fcpxRef == resource.fcpxID {
 							matchingItems.append(item)
 							
-							print("Matching audio clip found: \(item.fcpxName)")
+							print("Matching audio clip found: \(item.fcpxName ?? "unnamed element")")
 						}
 						
 					} else {

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

								
								if syncedClipChildElement.fcpxRef == resource.fcpxID {
									
									print("Matching synchronized clip found: \(item.fcpxName ?? "unnamed element")")
									matchingItems.append(item)
								}
							}
