fix NPE when the score threshold is too low