restoring die; after template load