Fixes discovery.