Fix a regression in item creation.