ctemplate plugin fix