Fixed not correctly checking items in folder if they were added through
addItem.