Improved cleaning of dead objects