fixed NPE in clearItems()