Fix items resetting their durability on sorting.