Fix template plugin working on reruns