fixed an error with adding new items using insertItemsAtIndexPaths