fixed a bug in deleting items