Refine template, so that default value does not generate error