I can't seem to use my rare candies?

I’ve got 4 rare candies, but can’t seem to use them on any of my pokemon. I can give them to them to hold, but that’s all I can do, any ideas? Edit: That was bizarre, restarted the game and it’s working.