fixed the configtemplate and ptable key issue