I haven't seen anything about this, so I'm sorry if this is repeated, but the EVs are wrong.
In the teambuilder, on the EV selection screen, for any Pokemon, it is possible to add an extra 2 EVs.
For example, if you were to have 252 EVs on Attack, and 252 EVs on Defense, it would say 4 EVs left...