diff --git a/view/poco_entry_xml.tpl b/view/poco_entry_xml.tpl
index c3db9f2b2..4d84cee41 100644
--- a/view/poco_entry_xml.tpl
+++ b/view/poco_entry_xml.tpl
@@ -2,10 +2,6 @@
{{ if $entry.id }}$entry.id{{ endif }}
{{ if $entry.displayName }}$entry.displayName{{ endif }}
{{ if $entry.preferredUsername }}$entry.preferredUsername{{ endif }}
-{{ if $entry.urls }}
-{{for $entry.urls as $url }}
-$url.value$url.type
-{{endfor}}
-{{ endif }}
-{{ if $entry.photos }}$entry.photos.value$entry.photos.type{{ endif }}
+{{ if $entry.urls }}{{ for $entry.urls as $url }}$url.value$url.type{{ endfor }}{{ endif }}
+{{ if $entry.photos }}{{ for $entry.photos as $photo }}$photo.value$photo.type{{ endfor }}{{ endif }}