fixed template delete