fix several bugs in InputDataScorer