Fixed crash when using items. Again. How did it happen that the earlier commit was reverted without being noticed??