Oh, that's a bug that has been around since day one. Still no idea what triggers it, but randomly, some fights just don't count. Just retry, or do a different family, or maybe swap all pets out and back in, or something. I never found out what actually makes it work and not work. Only thing I can guarantee is that it is not a strategy based issue.