Update template_registry.py

corrected diff_to_target