Fixed retrieval of delegate functions when user had multiple functions durring a year some of which are no longer active.