Fixed a bug with delete

There was a bug where I was pushing a new item and then splitting but
then referencing the same location of the split location, which
resulted in the wrong item being put into the trash. Now I move it to
the trash THEN delete.