imo, correct me if i am wrong i think its the revs causing it to not shift properly.

and as aaron has said "Of course, if you are upshifting, then you can wait a bit as the next gear up needs a slower spinning input shaft."