fix bug for when an item is null
updates