handle case where title is undefined in metadata