I was ev training the Red Gyrados I captured in the lake of rage. I was raising it's SP. ATT by fighting Flaafy. I was in my 47th when I decided to give Calciums so I can reduce training time. After 2 calciums, the game says I already maxed out the stat. But that was impossible since there is a maximum of 255 EV to go and I only got like 47x2(EV yield of Flaafy)+20 EVs I got from the vitamins, so that gives me 112 EVs which means I'm still 143 EVs short.