discovery: fix a warning