correction of destroy handler