discovery: fixed enabled in destructor