The last hotbarslot interaction is incorrect
If you have a sign in the last slot, place it and write something on it, it will switch to the slot next to it. Exactly the same happens when you enchanting.
If you have a sign in the last slot, place it and write something on it, it will switch to the slot next to it. Exactly the same happens when you enchanting.