fix load photos from xml