Are you sure about the legit of your Leavanny? Some ppl are complaining about the same problem like u, by the way they are editting pkmns in pokegen.
I saw a lot of then having the same difficult to transfer dittos 6 IVs 31, my ditto 5 IV was allowed without problems. Try check the pokeball and...