Fixed delete item bug