fix item deletion