fix item deletion glitch