Handle case when all templates fail to apply