fixes for AIOOB in craftingItem, and NPE in picture page