Fix reduction where object gets deleted multiple times.