Alteration to cope with situation when template has no data