Fixed function requiring agg init when no card in the database