Umm...you're breeding, right? If you're breeding then the parents IVs matter as well. You inherit 3 IVs from the parents. Obviously the bad speed stat is coming from one of the parents because you are hitting the wrong PID, not because you missed your seed. Unless your parents both have perfect speed and the seed has perfect speed as well, you won't always get perfect speed.
Zoroark's IVs: 31/9/31/31/31/31
Smeargle's IVs: 31/31/31/31/31/31
Yeeeeeeeeeeeeeeeeeeeeeeeeeeeeeah............................
I really don't know what is wrong. But thanks for trying to help....