Fixes the 'destroy' method.