remove doubled template