Fixed so that edited items are updated.