fixes issue #5;
fix destroy method