diff --git a/themes/buha/layouts/_default/rss.xml b/themes/buha/layouts/_default/rss.xml
index d26ea28e..9036c368 100644
--- a/themes/buha/layouts/_default/rss.xml
+++ b/themes/buha/layouts/_default/rss.xml
@@ -89,8 +89,9 @@
{{- end -}}
{{- range .Resources.ByType "image" -}}
- {{- if not (hasPrefix . "banner") }}
- {{- $c = printf "%s" $c .Permalink .Width .Height -}}
+ {{ $img := . }}
+ {{- if not (hasPrefix $img.Name "banner") }}
+ {{- $c = printf "%s" $c $img.Permalink $img.Width $img.Height -}}
{{- end -}}
{{- end -}}