fix destroy widgets