Fix exception if items are blank