fixed some addItems errors