fixes null check on new items