Fixed problem with undefined items.