fixed bug with trash events