Fixing delete from queue