fix loop for single templates
chg version