fix the format problem of template