fix handling of a default 'template' as a string