Correcting deletion of template