Item deletion bugfix