fix template issue