Problem with IV inheritance and Destiny Knot

pokemon-sixth-generation

I'm sorry about asking so many questions for this game but the technical stuff really mess with my head! So, I got a 6IV Ditto from a Reddit giveaway and I asked a dumb question about how to get a 6IV Ralts but here is a different question about it:

I have a 6IV Gligar and 6IV Ditto. I make the Jolly Ditto hold an Everstone while my Gligar holds the Destiny Knot.

Destiny Knot is meant to guarantee that 5IVs pass down but I still get 3-4IV Pokemon and it really takes up so much time so… What's wrong with the breeding? Is it the Destiny Knot?

Best Answer

That's not possible, if you have both parents with 6IV and you are using Destiny Knot you will have offspring with at least 5IV. This means that Ditto or Gligar isn't a flawless pokemon.
What does the IV-checker say about them?