mixing one's marbles: someone confusing people/things, unintential.
As opposed to losing marbles which can mean loosing grip of a situation or things, usually uttered in a frustrated manner, "I am losing my marbles".
You are mixing your marbles, you should have sent the package to me, not to Keith.
There is no mixing marbles.