Ensure objects are correctly removed from the scene.