Experience glitch

So I just beat Pokemon Trainer Yvonne in the cave right by the trainer school, and after defeating her Flebebe I only received 1 xp. I have no idea if it’s intentional, so I thought I’d bring it up.

You’re playing on Hard difficulty, which caps your EXP gain at 1 if you hit certain level caps.