fixed: template conditions