fixed scoring for spectral search