Fixes to gather_templates_from_uniprot