Fixed bug related to items deleting