Problem with IV inheritance and Destiny Knot

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?
Pictures about "Problem with IV inheritance and Destiny Knot"



Does destiny knot pass down IVs?
Breeding Pok\xe9mon with good IVs To get a parent Pok\xe9mon to pass down IVs, give it a Destiny Knot to hold. This passes down five of their IVs to their child, randomly. Having a parent hold a power item that's used for EV training will have the parent pass down the corresponding stat guaranteed.Does destiny knot take IVs from both parents?
Give either parent Pok\xe9mon the Destiny Knot to hold whilst in the Ranch, and a total of five IVs, taken at random from the IVs of the two parents, will be passed on to the hatched Pok\xe9mon.Does IVs pass down without destiny knot?
Do you need two Destiny Knots when breeding in Pokemon? No. Only one parent Pokemon needs to be holding a Destiny Knot in order to influence the inherited IVs of the eggs that are produced.Destiny Knot: How to use and the Mechanics!
Sources: Stack Exchange - This article follows the attribution requirements of Stack Exchange and is licensed under CC BY-SA 3.0.
Images: Monstera, 7inchs, Tom Fisk, Inzmam Khan