fix insert bulk for Templates