correct target dependency in discovery