fixed an issue with item durability checks