ModX getResources template chunk HTML out of order? -


i have getresources chunk looks like:

<a href="[[+tv.galimage]]" class="fancybox galitem" title="[[+pagetitle]]"> <div class="galimage" style="background-image: url('[[+tv.galimage]]')"></div> </a> 

but reason first 2 resources appear div outside of tags, eg:

<a href="images/gallery/ferrari1.jpg" class="fancybox galitem" title="image 2"> </a> <div class="galimage" style="background-image: url('images/gallery/ferrari1.jpg')"></div> 

yet every other resource following these first 2 , using same template chunk appears expected, eg:

<a href="images/gallery/porsche.jpg" class="fancybox galitem" title="image 2"> <div class="galimage" style="background-image: url('images/gallery/porsche.jpg')"></div> </a> 

would know why occurring , fix it?

(obviously, have tried clearing cache. also, not appear isolated particular resource. occurs no matter resources appear first in list.)

it weird issue wrapping block element (div) in inline tag. changed div span , ok.