Yeah, guess it needs the position. Btw, how the heck did Mending give you negative durability? It should stop once it's fully repaired.
I think it must roll over to negative before it was applied to the sword, I think I saw something about that in the Wiki somewhere but I can't find it again.
100000 doesn't work for adding to the XP-bar either but there it doesn't do anything at all.