destroy method bug fixed