Fixed buf: sometimes struct_conf can be non-loop elements, now also taking care of that particular case