Update template ids.