Fix a bug in the filter scorer