fix error in destroy when no machine associations in key