Fix requires' discovery.