fix incomplete template key