fixed bug on delete items