fix error during discovery.