Fix lua accesses of items.