fix stock finding.