Fixed issue when a single template is specified.