Fix error on item creation